<?php



class AmazonProductsMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.AmazonProductsMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('amazon_products');
		$tMap->setPhpName('AmazonProducts');

		$tMap->setUseIdGenerator(false);

		$tMap->addPrimaryKey('ASIN', 'Asin', 'string', CreoleTypes::VARCHAR, true, 64);

		$tMap->addColumn('NAME', 'Name', 'string', CreoleTypes::LONGVARCHAR, false, null);

		$tMap->addColumn('PRICE', 'Price', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('URL', 'Url', 'string', CreoleTypes::LONGVARCHAR, false, null);

		$tMap->addColumn('SMALLIMAGEURL', 'Smallimageurl', 'string', CreoleTypes::LONGVARCHAR, false, null);

		$tMap->addColumn('MEDIUMIMAGEURL', 'Mediumimageurl', 'string', CreoleTypes::LONGVARCHAR, false, null);

	} 
} 